package com.tengfei.main.course.domain.bo;


import com.tengfei.common.core.domain.BaseEntity;
import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 视频业务对象 cs_video
 *
 * @author tengfei
 * @date 2022-07-26
 */

@Data
@ApiModel("视频业务对象")
public class VideoBo {

    /**
     * 视频id
     */
    @ApiModelProperty(value = "视频id")
    @NotNull(message = "视频id不能为空",groups = {EditGroup.class})
    private Long videoId;

    /**
     * 视频名称
     */
    @ApiModelProperty(value = "视频名称", required = true)
    @NotBlank(message = "视频名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoName;

    /**
     * 视频封面
     */
    @ApiModelProperty(value = "视频封面")
    private String videoCover;

}
